var globalRules = {
	'ul#menu h6' : function(el) {
		el.onclick = function() {
			console.log('Clicked on item', el);
			if (Element.hasClassName(this.parentNode, 'open')) {
				Element.removeClassName(this.parentNode, 'open');
			} else {
				Element.addClassName(this.parentNode, 'open');
			}
		}
	}
}

Behaviour.register(globalRules);